function checkNum1(){
	var registerGiveNumPer = $("#registerGiveNumPer").val();
	var dayGetMaxNum = $("#dayGetMaxNum").val();
	if (parseInt(dayGetMaxNum) < parseInt(registerGiveNumPer)) {
		layer.msg("单日获得上限次数不能小于注册送次数!");
		$("#registerGiveNumPer").focus();
		return;
	}
}
function checkNum2(){
	var registerGiveNumPer = $("#registerGiveNumPer").val();
	var dayGetMaxNum = $("#dayGetMaxNum").val();
	if (parseInt(dayGetMaxNum) < parseInt(registerGiveNumPer)) {
		layer.msg("单日获得上限次数不能小于注册送次数!");
		$("#dayGetMaxNum").focus();
		return;
	}
}


// 提示信息
function add(){
	var registerGiveNumPer = $("#registerGiveNumPer").val();
	if (!CheckUtil.isNotNull(registerGiveNumPer) || !CheckUtil.isInt(registerGiveNumPer, "+")) {
		layer.msg("请输入正确的注册送次数!");
		$("#registerGiveNumPer").focus();
		return;
	}
	var dayGetMaxNum = $("#dayGetMaxNum").val();
	if (!CheckUtil.isNotNull(dayGetMaxNum) || !CheckUtil.isInt(dayGetMaxNum, "+")) {
		layer.msg("请输入正确的单日获得上限次数!");
		$("#dayGetMaxNum").focus();
		return;
	}
	var dayUseMaxNum = $("#dayUseMaxNum").val();
	if (!CheckUtil.isNotNull(dayUseMaxNum) || !CheckUtil.isInt(dayUseMaxNum, "+")) {
		layer.msg("请输入正确的单日使用上限次数!");
		$("#dayUseMaxNum").focus();
		return;
	}
	var shareGetNumPer = $("#shareGetNumPer").val();
	if (!CheckUtil.isNotNull(shareGetNumPer) || !CheckUtil.isInt(shareGetNumPer, "+")) {
		layer.msg("请输入正确的单次分享送次数!");
		$("#shareGetNumPer").focus();
		return;
	}
	var sharePrentRegisterGetNum = $("#sharePrentRegisterGetNum").val();
	if (!CheckUtil.isNotNull(sharePrentRegisterGetNum) || !CheckUtil.isInt(sharePrentRegisterGetNum, "+")) {
		layer.msg("请输入正确的被分享人注册送分享人次数!");
		$("#sharePrentRegisterGetNum").focus();
		return;
	}
	var sharePrentPayGetNum = $("#sharePrentPayGetNum").val();
	if (!CheckUtil.isNotNull(sharePrentPayGetNum) || !CheckUtil.isInt(sharePrentPayGetNum, "+")) {
		layer.msg("请输入正确的被分享人消费一单送分享人次数!");
		$("#sharePrentPayGetNum").focus();
		return;
	}
	var shareSonRegisterGetNum = $("#shareSonRegisterGetNum").val();
	if (!CheckUtil.isNotNull(shareSonRegisterGetNum) || !CheckUtil.isInt(shareSonRegisterGetNum, "+")) {
		layer.msg("请输入正确的被分享人注册送次数!");
		$("#shareSonRegisterGetNum").focus();
		return;
	}
	var shareSonPayGetNum = $("#shareSonPayGetNum").val();
	if (!CheckUtil.isNotNull(shareSonPayGetNum) || !CheckUtil.isInt(shareSonPayGetNum, "+")) {
		layer.msg("请输入正确的被分享人消费一单送次数!");
		$("#shareSonPayGetNum").focus();
		return;
	}
	if (parseInt(dayGetMaxNum) >= parseInt(registerGiveNumPer)) {
		if ($("#isReCommit").val() == 0) {
			$("#isReCommit").val(1);
			$("#saveObject").submit();
		}
	} else  {
		layer.msg("单日获得上限次数不能小于注册送次数!");
		return;
	}
}